<style>
        /*
              Created by Keith Donegan of Code-Sucks.com

              E-Mail: Keithdonegan@gmail.com

              You can do whatever you want with these layouts,
              but it would be greatly appreciated if you gave a link
              back to http://www.code-sucks.com

        */

    * { padding: 0; margin: 0; }

    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
    }
    #wrapper {
        margin: 0 auto;
        width: 922px;
    }
    #header {
        width: 900px;
        color: #333;
        padding: 10px;
        border: 1px solid #ccc;
        height: 120px;
        margin: 10px 0px 0px 0px;
        background: #006400;
    }
    #navigation {
        width: 900px;
        color: #333;
        padding: 10px;
        border: 1px solid #ccc;
        margin: 0px 0px 0px 0px;
        background: #DAC8BF;
    }
    #content {
        width: 900px;
        color: #333;
        border: 1px solid #ccc;
        background: #F2F2E6;
        margin: 0px 0px 10px 0px;
        padding: 10px;
        height: 350px;
    }
        h1, h2{
            padding-bottom: 50px;
        }
        p{
            padding-bottom: 10px;
        }

</style>
<h1>Payment Simulator</h1>

<p>This module simulates a client buying by creditcard/nfc at a store, online
or any other method of payment</p>

<%= form_tag("/stubpayments/payment", :method => "post") do %>
    <%= label_tag(:credit_card, "Credit Card:") %>
    <%= text_field_tag(:credit_card, "5517 2573 5246 0001") %><br />
    <%= label_tag(:credit_card, "Amount:") %>
    <%= text_field_tag(:amount, "200") %>     <br />
    <%= label_tag(:credit_card, "Category:") %>
    <%= select("category", "id", Category.all.collect {|p| [ p.name, p.id ] },) %>
    <%= submit_tag("Pay") %>
<% end %>